//
//  AddClubTableViewCell.swift
//  约健
//
//  Created by tyh on 2017/10/7.
//  Copyright © 2017年 tyh. All rights reserved.
//

import UIKit
let width = UIScreen.main.bounds.size.width
let height = UIScreen.main.bounds.size.height
class AddClubTableViewCell: UITableViewCell {
    var Add:UIButton!
    //var Guanzhu:UIButton!
    let ratio:CGFloat = 0.1
    override func awakeFromNib() {
        super.awakeFromNib()
        Add = UIButton()
        Add.setTitle("加入俱乐部", for: .normal)
        Add.setTitleColor(UIColor.white, for: .normal)
        Add.backgroundColor = UIColor.orange
        self.contentView.addSubview(Add)
      /*
        Guanzhu = UIButton()
        Guanzhu.backgroundColor = UIColor.orange
        self.contentView.addSubview(Guanzhu)
 */


        // Initialization code
    }
    override func layoutSubviews() {
        Add.frame = CGRect(x: 0, y: 0, width: width, height: height*ratio)
        //Guanzhu.frame = CGRect(x: 0, y: 0, width: width/5, height: height*ratio)
    }
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
